//
//  ZYVSModeSettingView.h
//  YiLin
//
//  Created by Zyark on 2018/6/6.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYModeTypeModel;
@class ZYVSModeSettingItemView;

@protocol ZYVSModeSettingItemViewDelegate <NSObject>
@optional
/**
 风速改变
 @param vsModeSettingItemView 当前view
 @param speedType 风速模式
 @param modeType 当前模式类型
 */
-(void)vsModeSettingItemView:(ZYVSModeSettingItemView *)vsModeSettingItemView changeWindSpeedType:(ZYWindSpeedType)speedType modeType:(ZYVSModeType)modeType;

/**
 比例按钮点击
 @param vsModeSettingItemView 当前view
 @param button 当前按钮
 */
-(void)vsModeSettingItemView:(ZYVSModeSettingItemView *)vsModeSettingItemView doProportionClick:(UIButton *)button;

@end

@interface ZYVSModeSettingItemView : UIView
@property(nonatomic,strong) ZYModeTypeModel *model;

@property(nonatomic,assign) id<ZYVSModeSettingItemViewDelegate> delegate;
/**
 初始化

 @param frame 大小
 @param modeType 模式类型
 @return 当前实例
 */
-(instancetype)initWithFrame:(CGRect)frame withModeType:(NSUInteger)modeType;

/**
 风速类型
 */
@property(nonatomic,assign) NSUInteger windSpeedType;

/**
 新风阀比例
 */
@property(nonatomic,assign) NSUInteger proportion;
@end
